package com.cskaoyan.javase.basic._5extra;

/**
 * 练习题
 *
 * @since 14:33
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Exercise {
    public static void main(String[] args) {
        // a 字符型只有在参与数值运算时,才是编码值参与运算,否则都是字符直接进行操作
        System.out.println('a');
        // 98
        System.out.println('a' + 1);
        // helloa1
        System.out.println("hello" + 'a' + 1);
        // 98hello
        System.out.println('a' + 1 + "hello");
        // 5 + 5 = 55
        System.out.println("5 + 5 = " + 5 + 5);
        // 5 + 5 = 10
        System.out.println("5 + 5 = " + (5 + 5));
        // 10 = 5 + 5
        System.out.println(5 + 5 + " = 5 + 5");
        // 10.0
        System.out.println(5 + 5.0);
        // 555.0
        System.out.println(5 + "5" + 5.0);
    }
}
